package BiblioDao;

import Biblio.metier.Adherent;

public class AdherentDao {


        public Adherent[] adherent = {
               

              new Adherent("Dupont", "Alain", 1001,"06 09 11 12"),
              new Adherent("Dupond", "Yves", 1002,"06 09 10 12"),
              new Adherent("FABRE", "Raymond", 1003,"06 19 10 12")
                  
                
        };

        public Adherent findByKey(int id){
            
            for(Adherent e  : adherent) 
            {
                   if((e.getIdUtilisateur()==id))
                           return e;
            }
        // Exception utilisateur inconnu retourne exception             
                   return null;
              
           }       
}